package com.neudu.glsb.service;

import com.neudu.glsb.dto.StatsDTO;
import com.neudu.glsb.mapper.OrdersMapper;
import com.neudu.glsb.pojo.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;
import java.util.Random;

/**
* @author Lenovo
* @description 针对表【orders(订单信息)】的数据库操作Service
* @createDate 2025-04-16 22:28:32
*/
public interface OrdersService extends IService<Orders> {


    List<Orders> listCompletedOrders();
    // 新增方法声明
    String generatePickupCode();
    List<Orders> getPendingPickupOrders();
    boolean updateToPendingPickup(Integer orderId);
    boolean updateToCompleted(Integer orderId);
    // 按时间范围获取销售统计数据
    StatsDTO getSalesStatsByDateRange(String startTime, String endTime);
}
